<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>跑客余额明细</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Finance/pnbalance_list')}">
        跑客姓名：<input type="text" name="dispatch_name" style="width: 100px;" value="{$formget.dispatch_name}">
        跑客电话：<input type="text" name="mobile" style="width: 100px;" value="{$formget.mobile}">
        余额变动时间：
        <input type="text" name="start_time" class="js-date" value="{$formget.start_time|default=''}" style="width: 80px;" autocomplete="off">-
        <input type="text" class="js-date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
        &nbsp;&nbsp;
        收入类型：
        <select class="select_2" name="balance_type"  style="width: 120px;" >
            <if condition="$formget[balance_type]==-1">
                <option value='-1' selected>全部</option>
                <else/>
                <option value='-1' >全部</option>
            </if>
            <if condition="$formget[balance_type]==1">
                <option value='1' selected>跑腿订单收入</option>
                <else/>
                <option value='1' >跑腿订单收入</option>
            </if>
            <if condition="$formget[balance_type]==2">
                <option value='2' selected>代购垫付入账</option>
                <else/>
                <option value='2' >代购垫付入账</option>
            </if>
            <if condition="$formget[balance_type]==3">
                <option value='3' selected>帮币兑换收入</option>
                <else/>
                <option value='3' >帮币兑换收入</option>
            </if>
            <if condition="$formget[balance_type]==4">
                <option value='4' selected>提现支出</option>
                <else/>
                <option value='4' >提现支出</option>
            </if>
            <if condition="$formget[balance_type]==5">
                <option value='5' selected>推荐用户奖励</option>
                <else/>
                <option value='5' >推荐用户奖励</option>
            </if>
            <if condition="$formget[balance_type]==6">
                <option value='6' selected>保险金额</option>
                <else/>
                <option value='6' >保险金额</option>
            </if>
            <if condition="$formget[balance_type]==7">
                <option value='7' selected>押金</option>
                <else/>
                <option value='7' >押金</option>
            </if>
            <if condition="$formget[balance_type]==8">
                <option value='8' selected>违约金</option>
                <else/>
                <option value='8' >违约金</option>
            </if>
            <if condition="$formget[balance_type]==9">
                <option value='9' selected>已退金额</option>
                <else/>
                <option value='9' >已退金额</option>
            </if>
            <if condition="$formget[balance_type]==10">
                <option value='9' selected>奖励金额</option>
                <else/>
                <option value='9' >奖励金额</option>
            </if>
        </select> &nbsp;&nbsp;
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form method="post" class="js-ajax-form">
       <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">序号</th>
                <th>跑客姓名</th>
                <th>跑客电话</th>
                <th>收入类型</th>
                <th>金额</th>
                <th>时间</th>
                <th>变动说明</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $balance_types=array("1"=>'跑腿订单收入',"2"=>'代购垫付入账',"3"=>'帮币兑换收入',"4"=>'提现支出',"5"=>'推荐用户奖励',"6"=>"保险金额","7"=>押金,"8"=>违约金,"9"=>"已退金额","10"=>"奖励金额");
            </php>
            <foreach name="datas" item="vo" key="k">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.balance_id}" title="ID:{$vo.balance_id}"></td>
                    <td align="center">{$k+1}</td>
                    <td>{$vo.dispatch_name}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$balance_types[$vo[balance_type]]}</td>
                    <td>{$vo.balance_amount}</td>
                    <td>{$vo.time}</td>
                    <td>{$vo[change_memo]}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html>